On reviewing this, I now see where I went wrong.